package com.otitan.la.forest.system.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 用户表
 *
 * @author jiacs
 * @email xxx
 * @date 2020-09-15 16:01:53
 */
@Data
@ApiModel("登录 DTO")
public class LoginUserDTO implements Serializable {
    private static final long serialVersionUID = 1L;


    /**
     * 用户名称
     */
    @NotEmpty(message = "用户名称不能为空")
    @ApiModelProperty(value = "用户名称", required = true)
    private String userName;

    /**
     * 密码
     */
    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(value = "密码", required = true)
    private String password;


}
